RHAIENG-4645: add integration test for CrewAI websearch agent#100
Conversation
Add deployment integration test that builds, deploys, health-checks, and tears down the CrewAI websearch agent on OpenShift — consistent with the existing LangGraph agent integration tests. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (2)
✅ Files skipped from review due to trivial changes (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughAdds the CrewAI websearch agent to the CI integration test matrix and implements an integration test that builds, deploys, verifies the agent's /health endpoint, and performs teardown on an OpenShift cluster. ChangesCrewAI Websearch Agent Integration Testing
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Missing from CI workflow matrix — the Suggested addition to the matrix: - { name: crewai-websearch-agent, dir: agents/crewai/websearch_agent }Missing Assisted by Claude Opus 4.6 (1M context) |
Address PR review comments: - Add httpx>=0.27 to dev dependencies (required by shared integration utils) - Add crewai-websearch-agent to the nightly CI workflow matrix Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
Both comments addressed in 3f0effc:
Assisted by Claude Opus 4.6 (1M context) |
|
[Important] Makefile formatting inconsistency with established agents The Current: test-integration: ## Run integration deployment tests
PYTHONPATH=$$(git rev-parse --show-toplevel)/tests uv run --extra dev python -m pytest tests/integration/test_deployment.py -v --tb=long --junitxml=results.xmlExpected (matching react_agent/HITL): test-integration: ## Run integration deployment test
PYTHONPATH=$$(git rev-parse --show-toplevel)/tests \
uv run --extra dev python -m pytest tests/integration/test_deployment.py \
-v --tb=long --junitxml=results.xmlSuggested fix: Reformat to match the react_agent/HITL style with backslash line continuations and singular "test". |
|
[Important] The Suggested fix: Add |
Address review feedback: - Reformat test-integration target with backslash line continuations and singular "test" to match react_agent/HITL style - Add results.xml to root .gitignore to prevent accidental commits Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
Both addressed in 2adc749:
Assisted by Claude Opus 4.6 (1M context) |
Ticket
RHAIENG-4645
Summary
test_deployment.py) for the CrewAI websearch agent, consistent with the existing LangGraph agent teststest-integrationMakefile target with properPYTHONPATHfor shared utilstests/integration/from the unittesttargethttpx>=0.27dev dependency (required by shared integration utils)crewai-websearch-agentto the nightly CI workflow matrixTest plan
make testfromagents/crewai/websearch_agent/still runs unit tests without integration testsmake test-integrationruns the deployment test — requires cluster auth, will be verified by nightly CI/healthreturns 200, and tears down viamake undeploy— requires cluster auth, will be verified by nightly CIresults.xml) is configured via--junitxml=results.xmlin the Makefile target🤖 Generated with Claude Code